from django.db import models

# Create your models here.
class User(models.Model):
    '''用户账号信息'''
    username = models.CharField(max_length=16, unique=True)  # 用户账号名称
    password = models.CharField(max_length=128)  # 用户密码，需要进行hash加密
    is_delete = models.BooleanField(default=False)
    create_time = models.DateTimeField(auto_now_add=True)  # 创建用户时间

    def __str__(self):
        return self.username

    class Meta:
        verbose_name_plural = '用户'
